/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tuitionmanagement.entity;

import java.sql.Date;


/**
 *
 * @author XUAN
 */
public class SubOrderEntity {
    private int subOrderId;
    private int studentId;
    private String description;
    private float money;
    private int feeLevelId;
    private Date feeDate;
    private int rateId;
    private String lastError;

    public SubOrderEntity(){

    }

    public SubOrderEntity(int _subOrderid, int _studentId, String _description, float _money, int _feeLevelId, Date _feeDate, int _rateId){
        this.subOrderId = _subOrderid;
        this.studentId = _studentId;
        this.description = _description;
        this.money = _money;
        this.feeLevelId = _feeLevelId;
        this.feeDate = _feeDate;
        this.rateId = _rateId;
    }

    public boolean validate() {
        
        return true;
    }

    /**
     * @return the subOrderId
     */
    public int getSubOrderId() {
        return subOrderId;
    }

    /**
     * @param subOrderId the subOrderId to set
     */
    public void setSubOrderId(int subOrderId) {
        this.subOrderId = subOrderId;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the money
     */
    public float getMoney() {
        return money;
    }

    /**
     * @param money the money to set
     */
    public void setMoney(float money) {
        this.money = money;
    }


    /**
     * @return the studentId
     */
    public int getStudentId() {
        return studentId;
    }

    /**
     * @param studentId the studentId to set
     */
    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    /**
     * @return the feeLevelId
     */
    public int getFeeLevelId() {
        return feeLevelId;
    }

    /**
     * @param feeLevelId the feeLevelId to set
     */
    public void setFeeLevelId(int feeLevelId) {
        this.feeLevelId = feeLevelId;
    }

    /**
     * @return the rateId
     */
    public int getRateId() {
        return rateId;
    }

    /**
     * @param rateId the rateId to set
     */
    public void setRateId(int rateId) {
        this.rateId = rateId;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the feeDate
     */
    public Date getFeeDate() {
        return feeDate;
    }

    /**
     * @param feeDate the feeDate to set
     */
    public void setFeeDate(Date feeDate) {
        this.feeDate = feeDate;
    }
}
